<template>
  <view>
    test
    <button @click="routerTo({ url: '/pagesA/test2/index', needLogin: true, modal: true })">token</button>
    <button @click="routerBack()">返回</button>
  </view>
</template>

<script>
import { routerTo, routerBack } from '@/utils/router.js'
export default {
  name: 'Test3',
  methods: {
    routerBack,
    routerTo
  },
}
</script>

<style lang="scss" scoped>
</style>